import torch
import numpy as np

a = torch.rand(8, 8)
print('A的值是:')
print(a)


print('*'*80)
b = a.reshape(16, 4)
print('B的值是:')
print(b)

print('*'*80)
c = np.random.rand(16,4)
# c = torch.from_numpy(c)
b += c
print('B+C:')
print(b)

print('*'*80)
d = np.random.rand(5)
d = torch.from_numpy(d)
print('D:')
print(d)